<%@ page import="net.amsoft.iservice.icontact.hibernate.IBroker" %>
<%@ page import="net.amsoft.iservice.icontact.service.IContact" %>
<%@ include file="base.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
	// Service URLs
	String issoURL = "#";
	String forwardingURL = "#";
	
	// Get IBroker Data
	IBroker oIBroker = IContact.getIBroker(request.getServerName());
	if (oIBroker!=null)
	{
		String url = oIBroker.getIssoURL();
		issoURL = url.substring(0, url.lastIndexOf('/')+1);
		url = oIBroker.getForwardingURL();
		forwardingURL = url.substring(0, url.lastIndexOf('/'));
	}

%>
<html>
<head>
<script src="js/help.js"></script>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title><bean:message key="title.login" /></title>
<link rel="stylesheet" type="text/css" href="styleSheets/iservices.css" />
</head>
<body onload="javascript:document.LoginForm.synonym.focus();document.LoginForm.synonym.value='=';">
<center>
<table cellspacing=25 border=0 cellpadding=0 width="800">
		<%@ include file="leftMenu.jsp" %>
		<td width="290" valign="top">
		<form name="LoginForm" action="/icontact/Login" method="POST">
			<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr valign="bottom"><td align="left" colspan="3" height="23px"><a href="<%=issoURL%>"><img src="<%=imagePath%>/tab-noclick-isso.jpg" border="0" onmouseover="this.src='<%=imagePath%>/tab-rollover-isso.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-isso.jpg'" /></a><img src="<%=imagePath%>/tab-click-contact.jpg" border="0" onmouseover="this.src='<%=imagePath%>/tab-rollover-contact.jpg'" onmouseout="this.src='<%=imagePath%>/tab-click-contact.jpg'" /><a href="<%=forwardingURL%>"><img src="<%=imagePath%>/tab-noclick-forwarding.jpg" border="0" onmouseover="this.src='<%=imagePath%>/tab-rollover-forwarding.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-forwarding.jpg'" /></a></td></tr>
				<tr valign="top">
				<td>
				<table border="0" cellspacing="0" cellpadding="0" width=100%>
					<tr height="45">
						<td rowspan=3 width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="100%" bgcolor="#999999"><img src="<%=imagePath%>/title_contact_login.gif" /></td>
						<td rowspan=3 width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>						
					<tr>
						<td width="100%" bgcolor="#CCCCCC">
						<table border="0" cellspacing="0" cellpadding="0" width=100%>
							<tr>
								<td width="10px"></td>
								<td class="blue-smalltext"><b><html:errors /></b></td>
							</tr>
							<tr>
								<td width="5px"></td>
								<td class="blue-smalltext"><bean:message key="label.login"/></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="8px"></td>
							</tr>
							<tr>
								<td height="8px" colspan="2" valign="bottom"><img height="2px"
									src="<%=imagePath%>/dotted-line.gif" /></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="8px"></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="32px" class="black-smalltext"><bean:message
									key="label.useriname" /> <input type="text" name="synonym" size="22" value="="
									maxlength="255" class="textbox">&nbsp; <input type="image"
									src="<%=imagePath%>/button-submit.jpg" name="submit_btn"
									onclick="LoginForm.submit();" align="middle"></td>
							</tr>
			
							<tr>
								<td width="10px"></td>
								<td height="32px" class="blue-xsmalltext">
								<bean:message key="label.multiple.inames" /> 
								<a class="link-nounderline "
								href='#' onmouseover="showHelp('<bean:message key='label.help.multipleinametitle'/>', '<bean:message key='label.help.multipleinamemsg' />');" >
								<img border="0" src="<%=imagePath%>/help-bullet.jpg"/>
								</a>
								</td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="110px" class="black-smalltext"></td>
							</tr>
						</table>
						</td>
					</tr>
					<tr height="10"><td bgcolor="#999999">&nbsp;</td></tr>						
				</table>
				</td>
				<td width=25><img src="<%=imagePath%>/white-square.gif"></td>
				<td width=270 height="300" valign=top><img src="<%=imagePath%>/related-news.gif?<%=dt.getTime()%>" width="270" height="300" /></td>
				</tr>
			</table>
		</form>
		<form name="helpForm">
			<input name='imagePath' type='hidden' value='<%=imagePath%>' />
			<DIV id="help" class="helpbox"></DIV>
		</form>
		</td>
	</tr>
</table>
</center>
</body>
</html>
